package com.a2.appa3.ui.fragment;

import android.support.v4.app.Fragment;

/**
 * Created by Administrator on 2017/8/4.
 * Fragment工厂
 */

public class FragmentFactory {
    private FragmentFactory() {
    }

    /**
     * FragmentID用于标记生产Fragment
     */
    public enum FragmentID {
    }

    /**
     * @param fragmentID 生产标记
     * @return 获得Fragment
     */
    public static Fragment get(FragmentID fragmentID) {
        Fragment fragment = null;
        switch (fragmentID) {

            default:
                fragment = new Fragment();
        }

        return fragment;
    }
}
